package thread_ex;

class PrinterThread extends Thread{
	public void run(){
		for(int i=1;i<=1000;i++){
			System.out.print("스레드출력중...");
			
			if(i%10 == 0){
				System.out.println();
			}
			
		}
	}
}



public class Test01_Thread1 {

	public static void main(String[] args) {
		PrinterThread pt = new PrinterThread();
		
		pt.start();
		
		for(int i=1;i<=1000;i++){
			System.out.print("일반출력중...");
			
			if(i%10 == 0){
				System.out.println();
			}
			
		}
		

	}

}
